# 私有实行子类都不能访问
# 但是这里是一个伪私有，因此还是又办法访问的

class Animal():
    __x = 10
    def test(self):
        print(self.__x)
        print(Animal.__x)

class Dog(Animal):
    def test2(self):
        print(self.__x)
        print(Dog.__x)
        pass
    pass


a = Animal()
a.test()

# dog = Dog()
# dog.test2()

# print(Animal.__x)
# print(dog.__x)

# a = 666

print(Animal._Animal__x)
